var baseURL="http://47.113.104.50"
function http({
    url
}){
    return new Promise((resolve,reject)=>{
        console.log(baseURL +url);
        wx.request({
            url: baseURL +url,
            method: 'GET', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
            // header: {}, // 设置请求的 header       
            success: (res)=>{
                resolve(res)
            },
            fail: (res)=> {
                reject(res)
            },
        })
    })
}
module.exports = http;